ccR.Add_Rotation(
	2,
	"CC_Paladin_Protection_Solo",
	"Protection for Levelling/Dungeons\n\nNowhere near completed yet.",
	"CC_Paladin_Protection_Talents", -- Talents
	"CC_Paladin_Protection_Abilities", -- Abilities
	"CC_Paladin_Protection_Features", -- Features
	"CC_Paladin_Protection_Setup" -- Setup
)
function CC_Paladin_Protection_Solo()
	if ccR.Target.Is.Attackable() then
		ccR.Start_Attack()
		-- Talents
		-- Paladin\Talents.lua
			if ccR.Var("Blinding_Light") then ccR.Paladin.Talent.Blinding_Light(ccR.Var("Blinding_Light_Count")) end
			if ccR.Var("Selfless_Healer") then ccR.Paladin.Talent.Selfless_Healer(ccR.Var("Selfless_Healer_Health")) end
			if ccR.Var("Sacred_Shield") then ccR.Paladin.Talent.Sacred_Shield(ccR.Var("Sacred_Shield_Health")) end
			if ccR.Var("Hand_of_Purity") then ccR.Paladin.Talent.Hand_of_Purity(ccR.Var("Hand_of_Purity_Health")) end
			if ccR.Var("Holy_Avenger") then if not ccR.Var("Holy_Avenger_BossOnly") or (ccR.Var("Holy_Avenger_BossOnly") and (ccR.Target.Is.Boss() or ccR.Player.Is.Solo())) then ccR.Paladin.Talent.Holy_Avenger() end end
			if ccR.Var("Holy_Prism") then ccR.Paladin.Talent.Holy_Prism(ccR.Var("Holy_Prism_Count")) end
			if ccR.Var("Lights_Hammer") then ccR.Paladin.Talent.Lights_Hammer(ccR.Var("Lights_Hammer_Count")) end
		-- Features
		-- Paladin\Features.lua
			if ccR.Var("Word_of_Glory") then ccR.Paladin.Feature.Word_of_Glory(ccR.Var("Word_of_Glory_Health"), 3) end
			if ccR.Var("Cleanse") then ccR.Paladin.Feature.Cleanse() end 
			if ccR.Var("Rebuke") then ccR.Paladin.Feature.Rebuke(ccR.Var("Rebuke_Time")) end 
			if ccR.Var("Hammer_of_Wrath") then ccR.Paladin.Feature.Hammer_of_Wrath() end
			if ccR.Var("Hand_of_Freedom") then ccR.Paladin.Feature.Hand_of_Freedom() end
			if ccR.Var("Divine_Protection") then ccR.Paladin.Feature.Divine_Protection(ccR.Var("Divine_Protection_Health")) end 
			if ccR.Var("Divine_Shield") then ccR.Paladin.Feature.Divine_Shield(ccR.Var("Divine_Shield_Health")) end 
			if ccR.Var("Lay_on_Hands") then ccR.Paladin.Feature.Lay_on_Hands(ccR.Var("Lay_on_Hands_Health")) end 
			if ccR.Var("Hand_of_Protection") then ccR.Paladin.Feature.Hand_of_Protection(ccR.Var("Hand_of_Protection_Health")) end 

		if ccR.Player.Health() <= 40 and ccR.Spell.Is.Ready(GUARDIAN_OF_ANCIENT_KINGS) then ccR.Cast.Spell(GUARDIAN_OF_ANCIENT_KINGS)
		elseif ccR.Player.Health() <= 25 and ccR.Spell.Is.Ready(ARDENT_DEFENDER) then ccR.Cast.Spell(ARDENT_DEFENDER)
		end
		if ccR.Spell.CanAttack(JUDGMENT) then ccR.Cast.Attack(JUDGMENT) end
		if ccR.Player.Is.Facing("target") then
			if ccR.Spell.CanAttack(HAMMER_OF_WRATH) and ccR.Target.Health() <= 20 then ccR.Cast.Attack(HAMMER_OF_WRATH)
			elseif ccR.Player.HasTalent(SANCTIFIED_WRATH) and ccR.Spell.Is.Ready(HOLY_WRATH) and ccR.Player.Count(10) > 0 then ccR.Cast.Spell(HOLY_WRATH)
			elseif ccR.Spell.Is.Ready(CONSECRATION) and ccR.Player.Count(8) >= 4 then ccR.Cast.Spell(CONSECRATION)
			elseif ccR.Spell.Is.Ready(HOLY_WRATH) and ccR.Player.Count(10) >= 4 then ccR.Cast.Spell(HOLY_WRATH)
			elseif ccR.Spell.CanAttack(AVENGERS_SHIELD) then ccR.Cast.Attack(AVENGERS_SHIELD)
			elseif ccR.Target.Count(8) > 1 and ccR.Spell.CanAttack(HAMMER_OF_THE_RIGHTEOUS) then ccR.Cast.Attack(HAMMER_OF_THE_RIGHTEOUS)
			elseif ccR.Player.Has.Talent(EXECUTION_SENTENCE) and ccR.Spell.CanAttack(EXECUTION_SENTENCE) then ccR.Cast.Attack(EXECUTION_SENTENCE)
			elseif ccR.Spell.Is.Ready(CONSECRATION) and ccR.Player.Count(8) >= 1 then ccR.Cast.Spell(CONSECRATION)
			elseif ccR.Spell.Is.Ready(HOLY_WRATH) and ccR.Player.Count(10) >= 1 then ccR.Cast.Spell(HOLY_WRATH)
			elseif ccR.Spell.CanAttack(SHIELD_OF_THE_RIGHTEOUS) and ccR.Player.Health() >= 50 and (ccR.Player.Holy_Power() >= 3 or ccR.Player.Has.Buff(DIVINE_PURPOSE)) then ccR.Cast.Attack(SHIELD_OF_THE_RIGHTEOUS)
			elseif ccR.Target.Count(8) == 1 and ccR.Spell.CanAttack(CRUSADER_STRIKE) then ccR.Cast.Attack(CRUSADER_STRIKE)
			end
		end
	end
end
